package com.peng.leetcode.list;

/**
 * ListNode
 *
 * @author: lupeng6
 * @create: 2020/12/22 10:14
 */
public class ListNode {
    int val;
    ListNode next;

    public ListNode(int x) {
        val = x;
    }

    ListNode(int x, ListNode next) {
        val = x;
        this.next = next;
    }

    @Override
    public String toString() {
        return val + "";
    }
}
